package com.huak.web.controller;

import org.springframework.stereotype.Controller;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

/**
 * @author LR2SD
 * @description
 * @date 2019-04-20 14:47
 */

@Controller
public class HelloWorldController {

    @RequestMapping("")
    public String index() {
        //model.addAttribute("message","hello");

        return "index";
    }

//    @ModelAttribute("message")
//    public String hello(@RequestHeader("Accept-Language")String acceptLanguage){
//        System.out.println("model---"+acceptLanguage);
//        return "liuhuan";
//    }
}
